package java8;

import org.junit.Test;

import java.util.ArrayList;

/**
 * @Author: zhenzhong.wang
 * @Date: 8/28/2018 10:36 AM
 */
public class LamdaTest {
  @Test
  public void testOne() {
    ArrayList<String> list = new ArrayList<>();
    list.add("1");
    list.add("2");
    list.add("123");
    list.forEach(e -> System.out.println(e));
  }

  @Test
  public void testThree() {
    try {
      int a = 1 / 0;
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
}
